import { getData, postData } from '@/utils/request'
export default {
  login: data => postData('/users/login', data),
  register: data => postData('/users/register', data),
  logout: () => postData('/users/logout'),
  loginInfo: () => getData('/users/loginInfo'),
  updateUser: data => postData('/users/update', data),
  uploadFile: data => postData('/upload/image_upload', data)
}
